import React, { Component } from 'react'
import {Redirect} from "react-router-dom"
import MyNavLink from "../MyNavLink"


export default class Nav extends Component {
    render() {
        return (
            <div className="col-xs-2 col-xs-offset-2">
                <div className="list-group">
                    {/* <NavLink activeClassName="activeNav" className="list-group-item" to="/about">About</NavLink>
                    <NavLink activeClassName="activeNav" className="list-group-item" to="/home">Home</NavLink> */}

                    <MyNavLink to="/about">About</MyNavLink>
                    <MyNavLink to="/home">Home</MyNavLink>
                    <Redirect to="/about" />
                </div>
            </div>
        )
    }
}
